const express = require('express');
const router = express.Router();
const sensitiveWordController = require('../controller/sensitiveWord');

// 创建敏感词
router.post('/create', sensitiveWordController.create);

// 获取敏感词列表
router.get('/list', sensitiveWordController.list);

// 更新敏感词
router.post('/update/:id', sensitiveWordController.update);

// 删除敏感词
router.post('/delete/:id', sensitiveWordController.delete);

module.exports = router; 